/*
*生成用户消费信息类
*  */
package Question3;

public class Bill {

    private int duractioncost; //通话时长(分钟)
    private double trafficcost; //上网流量
    private double cost; //每月消费金额

    public Bill() {}

    public Bill(int duractioncost, double trafficcost, double cost) {
        setCost(cost);
        setDuractioncost(duractioncost);
        setTrafficcost(trafficcost);
    }

    public int getDuractioncost() {
        return duractioncost;
    }

    public void setDuractioncost(int duractioncost) {
        this.duractioncost = duractioncost;
    }

    public double getTrafficcost() {
        return trafficcost;
    }

    public void setTrafficcost(double trafficcost) {
        this.trafficcost = trafficcost;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }
}
